'use strict'

module.exports = (lua = '') => {
  return lua
    .replace(/^return /, '')
    .replace(/\[(\d+)\]=/g, '"$1":')
    .replace(/\["(\w+)"\]=/g, '"$1":')
    .replace(/,}/g, '}')
}
